import { ajax } from "@/utils/ajax";

// 获取冷冻期配置
export const getExpires = async (): Promise<string> => {
    const response = await ajax.get('/configs/getExpires');
    return response.data;
};

// 更新冷冻期配置
export const editExpires = async (expires: string): Promise<void> => {
    await ajax.post('/configs/edit',null, {
        params: { expires }
    });
};